﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/teleweb/common/global.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中国通信服务</title>
<link href="teleweb/css/ztf.css" rel="stylesheet" type="text/css" />
<link href="teleweb/css/roll.css" rel="stylesheet" type="text/css" />
<link href="teleweb/css/content.css" rel="stylesheet" type="text/css" />
<script src="teleweb/js/gotoPage.js" type="text/javascript"></script>
<script src="teleweb/js/submitFunctions.js" type="text/javascript"></script>
</head>
<body>

<form name="downloadForm" action="download" method="post">
	<input type="hidden" name="filePaht" id="filepath"/>
	<input type="hidden" name="fileName" id="filename"/>
</form>

<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <!-- 主体table -->
  <%request.setAttribute("panel","KS");%>
  <%@ include file="/teleweb/common/include/header.jsp" %>
  <tr>
    <!---首页内容--->
    <td class="new_indexcontent">
    <div class="new_stars">
    <div class="new_weizhi">你现在所在的位置：<a href="index">首页</a>><a href="listKnowledgeShare.action?pageSize=10">知识共享</a></div>
    </div>
    <!---圆角--->
    <div class="box-cir3">
			<div class="t_l"></div>
			<div class="t_m"></div>
			<div class="t_r"></div>
			<div class="m_l"></div>
			<div class="m_m1">
    <!---标题内容--->
			<div class="new_heading1">
            <h3>知识共享</h3>
            <user:manager>
	            <div class="new_publisha">
	            	<button onclick="window.location.href='${ctx}/requestPage?page=pubknowledge&attachNum=1'">发布</button>
	            </div>
            </user:manager>
            </div>
            <table class="new_neirong" cellpadding="0" cellspacing="0">
            <tr>
            <th>文档名称
            </th>
            	<th width="120px" style="text-align:left;padding-left:10px;">上传日期
            </th>
            <user:manager>
            	<th width="120px" style="text-align:left;padding-left:10px;">&nbsp;</th>
            </user:manager>
            </tr>
            
            <c:if test="${!empty pm.resultList}">
				<c:forEach items="${pm.resultList}" var="ks">
					<tr>
						<td class="new_tablepoint">
							<a href="#" title="${ks.displayName}" onclick="downloadFile('${ks.filePath}','${ks.realName}');return false;">${ks.displayName}</a>
						</td>
	            		<td>${fn:substring(ks.uploadDate, 0, 16)}</td>
	            		<td>
	            			<user:manager>
	            				<div class="new_btpublish">
	            					<a href="knowledgepub-find?knowledgeShare.id=${ks.id}&addOrEdit=edit&attachNum=1">编辑</a>
	            					<a href="knowledgepub-delete?knowledgeShare.id=${ks.id}" onclick="return confirm('确定删除吗？');">删除</a>
	            				</div>
	            			</user:manager>
	            		</td>
	            	</tr>
			    </c:forEach>
			</c:if>
            
            </table>
            <div class="new_pages">
            
            <!-- 插入分页导航条 -->
            <pg:pager url="listKnowledgeShare.action" maxPageItems="${pm.perPageRecordNum}" items="${pm.recordSum}" export="currentPageNumber=pageNumber">
				<pg:param name="pageSize" value="10"/>
				<pg:first>
					<a href="${pageUrl}">[ 首页]</a>|
				</pg:first>
				<pg:prev ifnull="true">
					<% if (pageUrl != null) { %>   
        				<a HREF="<%=pageUrl%>">上一页</a>|
      				<% } else { %>   
        				&nbsp;上一页  |   
      				<% } %>   
				</pg:prev>
				<pg:next ifnull="true">
					<% if (pageUrl != null) { %>   
        				<a HREF="<%=pageUrl%>">下一页</a>|
      				<% } else { %>   
        				&nbsp;下一页  |   
      				<% } %> 
				</pg:next>
				<pg:last>
					<a href="${pageUrl}">[ 末页]</a>
					第<span class="new_point"><%=currentPageNumber%>/<%=pageNumber%></span>页 
					每页${pm.perPageRecordNum}条 共<%=pageNumber%>页 
					到第<input type="text" name="pageNo" id="pageNo"><span class="new_pagesbg" onclick="gotoPage(${pm.recordSum},${pm.perPageRecordNum},'listKnowledgeShare','pager')">页</span>
				</pg:last>
			</pg:pager>
    		
            </div>
			</div>
			<div class="m_r"></div>
			<div class="b_l"></div>
			<div class="b_m"></div>
			<div class="b_r"></div>
		</div>
    </td>
  </tr>
  <%@ include file="common/include/tail.jsp"%>
</table>
</body>
</html>